
# Common used models by the API

class OpendomoResponseModel():
    """
    A generic model containing a representation of the XML response returned by
    the Opendomo API.
    """
    def __init__(self):
        self.gui_elements = []
        self.command_elements = []
        self.error = False
        self.error_description = ""
        
class ItemModel():
    def __init__(self):
        self.label = None
        self.href = None

class CommandModel():
    def __init__(self):
        self.id = None
        self.label = None
        self.url = None
        self.state = None
